package com.example.lol.ui.news;

import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.lol.R;
import com.example.lol.adapter.CardActivityAdapter;
import com.example.lol.adapter.NewsArticleAdapter;
import com.example.lol.base.BaseFragment;
import com.example.lol.bean.CardActivityBean;
import com.example.lol.bean.NewsArticleBean;

public class MeActivityFragment extends BaseFragment {

    private RecyclerView mRecyclerView;
    private CardActivityAdapter cAdapter;

    @Override
    protected int rootLayout() {
        return R.layout.me_one;
    }

    @Override
    protected void initView(View view) {
        mRecyclerView = view.findViewById(R.id.me_one_list);
    }


    //个数
    @Override
    protected void initData() {
        cAdapter = new CardActivityAdapter();

        CardActivityBean t1 = new CardActivityBean("英雄联盟",
                "653", "59.3%", "34", "63", "大乱斗");
        cAdapter.addData(t1);
        CardActivityBean t2 = new CardActivityBean("云顶之奕",
                "634", "34%", "54", "21", "无限乱斗");
        cAdapter.addData(t2);
        CardActivityBean t3 = new CardActivityBean("英雄联盟",
                "234", "54%", "564", "56", "大乱斗");
        cAdapter.addData(t3);
        CardActivityBean t4 = new CardActivityBean("英雄联盟",
                "764", "35%", "765", "56", "无限乱斗");
        cAdapter.addData(t4);
        CardActivityBean t5 = new CardActivityBean("云顶之奕",
                "567", "36%", "23", "43", "大乱斗");
        cAdapter.addData(t5);
        CardActivityBean t6 = new CardActivityBean("云顶之奕",
                "234", "56%", "76", "54", "无限乱斗");
        cAdapter.addData(t6);
        CardActivityBean t7 = new CardActivityBean("英雄联盟",
                "875", "73%", "54", "24", "大乱斗");
        cAdapter.addData(t7);


    }

    @Override
    protected void bindData() {
        super.bindData();
        mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
        mRecyclerView.setAdapter(cAdapter);

    }

    @Override
    protected void bindEvent() {

    }
}